<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>绘制图案</title>
	</head>
	<body>
	<!-- 江沿蒙179000845 -->
	<script type="text/javascript">
		//绘制三角形
		let sum1="";
		for (let a = 0; a < 5; a++) {
			for (let b = 0; b < 5 - a; b++) {
				sum1+="&nbsp;&nbsp;";
			}
			for (let c = 0; c < a + 1; c++) {
				sum1+="*"+"&nbsp;&nbsp;&nbsp;";
			}
		     sum1+="<br>";
		}
		document.write(sum1);
			
		//绘制平行四边形
		let sum2="";
		for (let a = 0; a < 5; a++) {
			for (let b = 0; b < 5 - a; b++) {
				sum2+="&nbsp;&nbsp;";
			}
			for (let c = 0; c < 4; c++) {
				sum2+="*"+"&nbsp;&nbsp;&nbsp;&nbsp;";
			}
			sum2+="<br>";
		}
		document.write(sum2);
	</script>
	</body>
</html>

